package org.jeecg.modules.solitaire_app.app.schedul;

import org.jeecg.modules.solitaire_app.app.service.IYsyWithdrawLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@EnableScheduling
public class WithdrawLogSecheduling {

    @Autowired
    private IYsyWithdrawLogService ysyWithdrawLogService;

    //每月一号早上一点执行
    @Scheduled(cron = "0 1 0 1 * ?")
    public void toUserFreeToUseMoney() {
        ysyWithdrawLogService.toUserFreeToUseMoney();
    }
}
